<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Les parties en cours</title>
    <style>
      .nav { list-style: none; margin: 0; padding: 0; }
      .nav li { display: inline; }
      .nav li a { text-decoration: none; }
    </style>
  </head>
  <body>
      <div style="width:100%;text-align:right;"><a href="/accounts/logout">{{ user.username }} (Déconnexion)</a></div>
      <table align=center><tr><td>
    <h1><img src="/static/logo.jpg" /></h1>
    <ul class="nav">
    </ul>
    <h3>Bienvenue {{ user.username }}: vos parties actives:
    <ul>
      {% for game in my_turn %}
      <li>
        <a href="{{ game.get_absolute_url }}">{{ game.name }}</a> [Participants:
        {{ game.get_players|join:", " }}]</li>
      {% endfor %}

      {% for game in other %}
      <li>
        <a href="{{ game.get_absolute_url }}">{{ game.name }}</a> [Participants:
        {{ game.get_players|join:", " }}]</li>
      {% endfor %}
    </ul>
    </td></tr></table>
  </body>
</html>
